{% comment %}
<!--
  Copyright (C) 2008 ZHENG Zhong <http://www.zhengzhong.net/>
  
  Created on 2009-05-06.
  $Id$
-->
{% endcomment %}

{% if scenes %}

  <div class="movie_list">

    <table>
      <tbody>
        {% for scene in scenes %}
          <tr>
            <td style="width:1%;">
              <div class="poster">
                {% if scene.parent.has_poster %}
                  <img src="{{webapp_}}/movie/{{scene.parent.key.id}}/poster/"
                       alt="{{scene.parent.name|escape}}"
                       title="{{scene.parent.name|escape}}"/>
                {% else %}
                  <img src="{{static_}}/images/movie_no_poster.jpg"
                       alt="{{scene.parent.name|escape}} (no poster)"
                       title="{{scene.parent.name|escape}} (no poster)"/>
                {% endif %}
              </div>
            </td>
            <td>
              <div class="title">
                In
                <a href="{{webapp_}}/movie/{{scene.parent.key.id}}/">{{scene.parent.name|escape}}</a>,
                from {{scene.start_time}} minutes ({{scene.seconds}} seconds)
              </div><!--/.title-->
              <div class="description">
                {% if scene.description %}
                  {{scene.description|escape}}
                {% else %}
                  <span class="na">This scene does not have a description.</span>
                {% endif %}
              </div><!--/.description-->
              <div class="properties">
                {% if scene.actress %}
                  <span>
                    <img src="{{static_}}/images/actress_icon.gif" alt="Actress" title="Actress"/>
                    <a href="http://images.google.com/images?q={{scene.actress|urlencode}}">
                      {{scene.actress|escape}}
                    </a>
                  </span>
                {% endif %}
                {% if scene.actor %}
                  <span>
                    <img src="{{static_}}/images/actor_icon.gif" alt="Actor" title="Actor"/>
                    <a href="http://images.google.com/images?q={{scene.actor|urlencode}}">
                      {{scene.actor|escape}}
                    </a>
                  </span>
                {% endif %}
                <span>
                  <img src="{{static_}}/images/confirm_icon.gif" alt="Confirmed" title="Confirmed"/>
                  {{scene.confirmed|length}}
                </span>
                <span>
                  <img src="{{static_}}/images/disprove_icon.gif" alt="Disproved" title="Disproved"/>
                  {{scene.disproved|length}}
                </span>
                <span>
                  <img src="{{static_}}/images/favor_icon.gif" alt="Favored" title="Favored"/>
                  {{scene.favored|length}}
                </span>
                <span>
                  <img src="{{static_}}/images/comment_icon.gif" alt="Comments" title="Comments"/>
                  {{scene.comments}}
                </span>
                <br/>
                <span>
                  <img src="{{static_}}/images/add_icon.gif" alt="Submitter" title="Submitter"/>
                  Added on {{scene.submit_date|date:"Y-m-d"}} by
                  <a href="{{webapp_}}/user/{{scene.submitter.user_id}}/">
                    {{scene.submitter.nickname|escape}}
                  </a>
                </span>
                <span>
                  <img src="{{static_}}/images/page_icon.gif" alt="Open scene page" title="Open scene page"/>
                  <a href="{{webapp_}}/movie/{{scene.parent.key.id}}/{{scene.key.id}}/">
                    Open scene page
                  </a>
                </span>
              </div><!--/.properties-->
            </td>
          </tr>
        {% endfor %}
      </tbody>
    </table>

  </div><!--/.movie_list-->

{% endif %}



